package test;

import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;

public class SynchronizedCounter {
	private int c = 0;

    public synchronized void increment() {
        c++;
    }

    public synchronized void decrement() {
        c--;
    }

    public synchronized int value() {
        return c;
    }
    public static void main(String args[]){
    	System.out.print(System.getProperties().getProperty("awt.useSygfdfstemAAFontSettings"));
    	Transferable tran = new Transferable() {
			
			@Override
			public boolean isDataFlavorSupported(DataFlavor flavor) {
				// TODO Auto-generated method stub
				return false;
			}
			
			@Override
			public DataFlavor[] getTransferDataFlavors() {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public Object getTransferData(DataFlavor flavor)
					throws UnsupportedFlavorException, IOException {
				// TODO Auto-generated method stub
				return null;
			}
		};
    }
}
